<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="./template.xhtml">

    <ui:define name="title">
        ContextMenu - <span class="subitem">Basic</span>
    </ui:define>

    <ui:define name="description">
        ContextMenu is an overlay menu display mainly displayed using right-click.
    </ui:define>

    <ui:param name="documentationLink" value="/components/contextmenu" />

    <ui:define name="implementation">
        
        Right click to view the menu options.
    
        <h:form>				
            <p:growl id="messages" showDetail="true"/>

            <p:contextMenu>
                <p:menuitem value="Save" action="#{menuView.save}" update="messages" icon="pi pi-save"/>
                <p:menuitem value="Update" action="#{menuView.update}" update="messages" icon="pi pi-refresh"/>
                <p:menuitem value="Delete" action="#{menuView.delete}" ajax="false" icon="pi pi-times"/>
                <p:menuitem value="Homepage" url="http://www.primefaces.org" icon="pi pi-home"/>
            </p:contextMenu>
        </h:form>
        
    </ui:define>

</ui:composition>